<!--manager login form-->
<div id="manager_login"  >
{? if $errors|@is_array || $errors|strlen > 0 ?}
	{? assign var=has_error value=true ?}
{? else ?}
	{? assign var=has_error value=false ?}
{? /if ?}
<fieldset>
<legend>Soj Manager Sign In</legend>
<form action="/soj/php/manager/manager_do_login.php" method="post">
	<div class="error" {? if !$has_error ?}style="display:none;"{? /if ?}>
	
	如果无法登陆请关闭窗口重新打开窗口或者刷新窗口
	{? if $errors|@is_array ?}
		{?* do someting *?}
	{? else ?}
		{? $errors|escape ?}
	{? /if ?}
	
	</div>
	<div class="row"> 
		<label for="admin" >Username</label><input name="admin" type="text" />
	</div>
	<div class="row">
		<label for="pw" >Password</label><input name="passwd" type="password" /><br><br>
	</div>
	
	{? if $captcha ?}
			
	<!-- captcha -->
	<img class="captcha" src="{? $captcha_path_and_file_name ?}"/>			
	<div id="captcha_container" class="row">
	<label for="captcha">Enter above phase</label>
	<input type="text" name="captcha_value" class="text"/>
	</div>
	
	{? /if ?}
	
	<input name="sign in" type="submit" value="sign in"  class="row"> 
</form>
</fieldset>
</div>
